package com.project.lk.nurseapp.utils;

import android.widget.Toast;

import com.project.lk.nurseapp.base.BaseApp;


/**
 * 功能介绍：
 * 项目名：
 * 模块名称：
 * 作者：LK
 * 日期：2018/1/9
 * 修改日期：
 */
public class ToastUtils {
    static Toast    toast=null;
    public static void showShortToast(String msg){
        if (toast == null) {
            toast = Toast.makeText(BaseApp.getContext(), msg, Toast.LENGTH_SHORT);
        } else {
            toast.setText(msg);
        }
        toast.show();
//        Toast.makeText(BaseApp.getContext(),msg,Toast.LENGTH_SHORT).show();

    }


    public static void showLongToast(String msg){
        Toast.makeText(BaseApp.getContext(),msg,Toast.LENGTH_LONG).show();
    }
}
